import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-04-02
 * Time: 19:06
 */
public class Data {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()) {
            int n = sc.nextInt();
            for (int i = 0; i < n; i++) {
                for (int j = 0; j < n; j++) {
                    if (i == j || (i + j) == n - 1) {
                        System.out.print("*");
                    } else {
                        System.out.print(" ");
                    }
                }
                System.out.println();
            }
        }
    }
    public static void main5(String[] args) {
        double sum = 0;
        int flg = 1;
        for (int i = 1; i < 101; i++) {
            sum = sum + flg * 1 *1.0 / i;
            flg = -flg;
        }
        System.out.println(sum);
    }
    public static void main4(String[] args) {
        for (int i = 1000; i < 2000; i++) {
            if ((i % 4 == 0 && i % 100 != 0) || (i % 400 == 0)) {
                System.out.println(i );
            }


        }
    }
    public static void main3(String[] args) {
        int i = 0;
        int j = 0;
        for (i= 2; i <= 100; i++) {
            for (j = 2; j <= i; j++) {


                if(i % j == 0) {
                    break;
                }
            }
            if (j == i) {
                System.out.print(i+" ");
            }
        }
    }

    public static void main2(String[] args) {
        int x = 20;
        int i = 0;
        for (i = 2; i <= x; i++) {
            if (x % i == 0) {
                break;
            }
        }
        if (i == x) {
            System.out.println(x + "是素数");

        }
        else {
            System.out.println(x+"不是素数");
        }


    }
    public static void main1(String[] args) {
        /*System.out.println("Day 26");
        Scanner sc1 = new Scanner(System.in);
        Scanner sc2 = new Scanner(System.in);
        int x = sc1.nextInt();
        int y = sc2.nextInt();
        int ret = sum(x,y);
        System.out.println(ret);
    }
    public  static int sum (int a, int b) {
        return a*b;
    }*/
        print(123);
    }
    public static void print(int num) {
        while (num != 0) {
            System.out.println(num % 10);
            num /= 10;
        }
    }
}
